//
//  YCOrderTimeModel.m
//  YCVillageDoctor
//
//  Created by Mac on 2017/6/13.
//  Copyright © 2017年 zhangxiaoliang. All rights reserved.
//

#import "YCOrderTimeModel.h"

@implementation YCOrderTimeModel

+(NSDictionary *)mj_replacedKeyFromPropertyName
{
    return @{
             @"startTime":@"START_DATE",
             @"endTime":@"END_DATE",
             @"hosName":@"HOS_NAME",
             @"buyId":@"BUY_ID",
             };
}

-(void)setEndTime:(NSString *)endTime{
    
    NSString *end = endTime;
    NSString *endStr = @"";
    if (end!=nil) {
        NSDate *date = [NSDate dateOfStringWithFormat:YcFormatterStyleYYYYMMddHHmmss WithDateString:end];
        endStr = [date stringOfDateWithFormat:YcFormatterStyleYMdC];
    }
    _endTime = endStr;
}

-(void)setStartTime:(NSString *)startTime{
    NSString *start = startTime;
    NSString *startStr = @"";
    if (start!=nil) {
        NSDate *date = [NSDate dateOfStringWithFormat:YcFormatterStyleYYYYMMddHHmmss WithDateString:start];
        startStr = [date stringOfDateWithFormat:YcFormatterStyleYMdC];
    }
    _startTime = startStr;
}

@end
